package com.czd.support.model;

import com.czd.base.model.Page;
import org.apache.ibatis.type.Alias;

/**
 * Created with IntelliJ IDEA.
 * Author: Jerry.hu
 * Create: Jerry.hu (14-9-18 22:11)
 * Description:
 * To change this template use File | Settings | File Templates.
 */
@Alias("dataDictionary")
public class DataDictionary extends Page {
    /**
	 * 
	 */
	private static final long serialVersionUID = 8761849929660916082L;
	/**
     * 字典主键 id
     */
    private int id;
    /**
     * 字典code 值
     */
    private String code;
    /**
     * 字典显示值
     */
    private String text;
    /**
     * 字典依赖的父级code
     */
    private String level;
    /**
     * 字典 排序值
     */
    private int sort;

    /**
     * 获取 字典主键 id
     * @return 字典主键 id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置 字典主键 id
     * @param id 字典主键 id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取 字典code 值
     * @return 字典code 值
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置 字典code 值
     * @param code 字典code 值
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取 字典显示值
     * @return  字典显示值
     */
    public String getText() {
        return text;
    }

    /**
     * 设置  字典显示值
     * @param text  字典显示值
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * 获取 字典依赖的父级code
     * @return 字典依赖的父级code
     */
    public String getLevel() {
        return level;
    }

    /**
     * 设置 字典依赖的父级code
     * @param level 字典依赖的父级code
     */
    public void setLevel(String level) {
        this.level = level;
    }

    /**
     * 获取 字典排序值
     * @return  字典排序值
     */
    public int getSort() {
        return sort;
    }

    /**
     * 设置  字典排序值
     * @param sort  字典排序值
     */
    public void setSort(int sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "DateaDictionary{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", text='" + text + '\'' +
                ", level='" + level + '\'' +
                ", sort=" + sort +
                '}';
    }
}
